package com.example.demo.service.Impl;

import com.example.demo.dao.IndividualUserMapper;
import com.example.demo.pojo.IndividualUser;
import com.example.demo.service.IndividualUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class IndividualUserServiceImpl implements IndividualUserService {
    @Autowired
    private IndividualUserMapper individualUserMapper;

    @Override
    public int addIndividualUser(IndividualUser individualUser) {
        return individualUserMapper.addIndividualUser(individualUser);
    }

    @Override
    public IndividualUser login(IndividualUser individualUser) {
        return individualUserMapper.loginInfo(individualUser);
    }

    @Override
    public int updateIntegral(IndividualUser individualUser) {
        return individualUserMapper.updateIntegral(individualUser);
    }
}
